<?php
/**
 * Created by PhpStorm.
 * User: 68008000
 * Date: 2017/12/5
 * Time: 11:01
 */

namespace app\admin\validate;


use think\Validate;

class Admin extends Validate
{
    protected $rule = [
        'username'  => 'require|max:30',
        'password' => 'require|number|max:15',


    ];

    protected $message = [
        'username.require'  => '请输入用户名',
        'username.max'  => '用户名最多不能超过30个字符',
        'password.require' => '请输入密码',
        'password.number' => '密码必须是数字',
        'password.between' => '密码最多不能超过15个字符',
    ];
}